<!DOCTYPE html>

<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    {%block refresh%}{%endblock%}
    {%block title%}<title>文章发布</title>{%endblock%}
    <meta charset="utf-8">
    <link rel="shortcut icon" href={{url_for("static",filename="icon/icon.jpg")}}>
    <link rel="stylesheet" href={{url_for("static",filename="css/errorh.css")}}>
    {%block style%}
    <style>
        #title{
            width: 100%;
            opacity: 0.9;
        }

        #context{
            width: 100%;
            height: 570px;
            opacity: 0.9;
        }
        #cardc{

            background-size: cover;
            background-repeat: no-repeat;
            background-image: url({{url_for("static",filename="img/85890.jpg")}});
            
        }

        body{
            background-color:cornsilk;
        }

        a{
            text-decoration: none;
        }

        textarea{
            width: 100%;
            height: 600px;
            opacity: 0.9;
        }
        
        h1,h2,h3{
            text-align: center;
        }


    </style>
    {%endblock%}

</head>


<body >
    <div class="row">
    <div class="header">
        {%block header%}{%endblock%}
    </div>
    <div class="column">
        {%block leftcolumn%}{%endblock%}
    </div>
    <div class="column">
        <ul>
            {% for message in get_flashed_messages() %}
            <div class=flash><li><p>{{ message }}</p></li></div>
            {% endfor %} 
        </ul>
        {%block midcolumn%}
            <form action="" method="post">
                <div class="card">
                <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
                {{form.title.label}}
                <br>
                {{form.title}}
                <br></div><br>
                <div class="card" >
                {{form.context.label}}
                </div>
                <div class="card" id="cardc">
                {{form.context}}
                </div><br>
                {{form.submit}}
                {{pagedown.include_pagedown()}}
                <br>
            </form>
        {%endblock%}
    </div>
    <div class="column">
        {%block rightcolumn%}{%endblock%}
    </div>
    </div>

    <div class="footer">
        {%block footer%}
        <a href={{url_for("root.index")}}> <p style="text-align: center;">返回目录</p></a>
        {%endblock%}
    </div>
</body>

</html>